#ifndef APP_TASK_H__
#define APP_TASK_H__

// "include FreeRTOS.h must appear in source files before include task.h"
#include "kernel.h"

/* ------------------------------------------ */
#define START_TASK_PRIO		1       //任务优先级
#define START_STK_SIZE 		128     //任务堆栈大小	
 
typedef enum{
    TASK_ID_START=0,
    TASK_ID_USART_COMM,
    TASK_ID_CAN_RX_COMM,
    TASK_ID_CAN_TX_COMM,
    TASK_ID_EMCY,
    TASK_ID_SERVO_COMM,
    TASK_ID_CAN_TEST,

    TASK_ID_MAX
}TASK_ID_E;


extern task_t task_list[TASK_ID_MAX];
void start_task(void *pvParameters);    //任务函数

#endif
